<template>
  <div class="grid-box">
    <p>Align Top</p>
    <CloudRow type="flex" justify="center" align="top">
      <CloudCol :span="4">
        <p class="height-100">col-4</p>
      </CloudCol>
      <CloudCol :span="4">
        <p class="height-50">col-4</p>
      </CloudCol>
      <CloudCol :span="4">
        <p class="height-120">col-4</p>
      </CloudCol>
      <CloudCol :span="4">
        <p class="height-80">col-4</p>
      </CloudCol>
    </CloudRow>

    <p>Align Center</p>
    <CloudRow type="flex" justify="space-around" align="middle">
      <CloudCol :span="4">
        <p class="height-100">col-4</p>
      </CloudCol>
      <CloudCol :span="4">
        <p class="height-50">col-4</p>
      </CloudCol>
      <CloudCol :span="4">
        <p class="height-120">col-4</p>
      </CloudCol>
      <CloudCol :span="4">
        <p class="height-80">col-4</p>
      </CloudCol>
    </CloudRow>

    <p>Align Bottom</p>
    <CloudRow type="flex" justify="space-between" align="bottom">
      <CloudCol :span="4">
        <p class="height-100">col-4</p>
      </CloudCol>
      <CloudCol :span="4">
        <p class="height-50">col-4</p>
      </CloudCol>
      <CloudCol :span="4">
        <p class="height-120">col-4</p>
      </CloudCol>
      <CloudCol :span="4">
        <p class="height-80">col-4</p>
      </CloudCol>
    </CloudRow>
  </div>
</template>
<script>
export default {
  title: '2.Flex 对齐',
  subTitle: 'Flex 子元素垂直对齐。',
  data() {
    return {}
  },
  methods: {

  }
}
</script>

<style lang="scss" scoped>
.grid-box {
  text-align: center;
}
.ant-row {
  color: #ffffff;
}
.ant-row-flex > div:not(.gutter-row):nth-child(odd),
.ant-row > div:not(.gutter-row):nth-child(odd),
.ant-row-flex > div:not(.gutter-row):nth-child(odd),
.ant-row > div:not(.gutter-row):nth-child(odd) {
  background: rgba(0, 160, 233, 0.7);
  color: #ffffff;
}
.ant-row-flex > div:not(.gutter-row),
.ant-row > div:not(.gutter-row),
.ant-row-flex > div:not(.gutter-row),
.ant-row > div:not(.gutter-row) {
  background: #00a0e9;
  padding: 16px 0;
  color: #ffffff;
}
.ant-row-flex {
  background: #f5f5f5;
}
.height-100 {
  height: 100px;
  line-height: 100px;
}
.height-50 {
  height: 50px;
  line-height: 50px;
}
.height-120 {
  height: 120px;
  line-height: 120px;
}
.height-80 {
  height: 80px;
  line-height: 80px;
}
</style>